//
//  DrawerScrollView.m
//  ZhiHuDaily
//
//  Created by albert on 16/8/14.
//  Copyright © 2016年 albert. All rights reserved.
//

#import "DrawerScrollView.h"

@implementation DrawerScrollView

//- (instancetype)initWithFrame:(CGRect)frame{
//    if (self = [super initWithFrame:frame]) {
//    }
//    return self;
//}

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    UIView *hitView = [super hitTest:point withEvent:event];
    if (point.x > JKScreenW * 6 / 5) {
        self.scrollEnabled = NO;
    } else {
        self.scrollEnabled = YES;
    }
    return hitView;
}

- (void)didMoveToSuperview{
    [super didMoveToSuperview];
    
    if (!self.superview) {
        return;
    }
    
//    self.panGestureRecognizer.maximumNumberOfTouches = 1;
}
@end
